package com.bamboo.eduservice.feign.fallback;

import com.bamboo.eduservice.feign.OrderFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 熔断处理类
 *
 * @author jack.wu
 * @version 1.0
 * @date 2020-07-11
 */
@Slf4j
@Component
public class OrderFeignClientFallback implements OrderFeignClient {


    @Override
    public boolean isBuyCourse(String courseId, String memberId) {
        log.info("远程调用失败:{}", "OrderFeignClientFallback");
        return false;
    }
}
